package com.woniuxy.cloud.carl.carlgoods.infra.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * sku表
 * </p>
 *
 * @author Lucas
 * @since 2023-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sku")
public class Sku implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * sku_id
     */
    @TableId(value = "sku_id", type = IdType.AUTO)
    private Long skuId;

    /**
     * sku名称
     */
    private String skuName;

    /**
     * spu的Id
     */
    private Long spuId;

    /**
     * 门店Id
     */
    private Long storeId;

    /**
     * 价格
     */
    private BigDecimal skuPrice;

    /**
     * 库存
     */
    private Integer skuStock;

    /**
     * sku的销量
     */
    private Integer skuSales;

    /**
     * 快查询
     */
    private String quicklySearch;

    /**
     * 折扣
     */
    private double discount;



    /**
     * 状态   1、上架     2、下架
     */
    private Integer skuStatus;

    private String image;


}
